/* 
 * File:   Rotate.h
 * Author: maximiliano
 *
 * Created on March 26, 2013, 5:44 PM
 */

#ifndef ROTATE_H
#define	ROTATE_H

#include <cstring>
#include "Mangle.h"

using namespace std;

namespace TP3 { namespace Mangling {

class Rotate : public Mangle {
public:
    
    Rotate(int placesNumber);
    
    virtual string& run (string& operating);
    
    virtual ~Rotate();

    virtual string getName();    
        
private:
    int _placesNumber;
    
    string& moveLeft(string& operating);
    
    string& moveRight(string& operating);    
};

}}

#endif	/* ROTATE_H */

